import Layout from '@/components/core/layout'

const router = {
  path: '/baseinfo',
  name: 'info',
  meta: {
    title: 'info',
    icon: 'mdi-apple-icloud',
  },
  component: Layout,
  redirect: '/baseinfo/hotel',
  children: [
    {
      path: 'product',
      name: 'product',
      component: () => import('@/views/base-info/product'),
      meta: {
        title: 'product'
      }
    },
    {
      path: 'resource',
      name: 'resource',
      redirect: '/resource/hotel',
      component: () => import('@/components/emtry'),
      meta: {
        title: 'resource'
      },
      children: [
        {
          path: 'hotel',
          name: 'hotelManage',
          component: () => import('@/views/base-info/resource/hotel'),
          meta: {
            title: 'hotelManage'
          }
        },
        {
          path: 'scenic',
          name: 'scenicManage',
          component: () => import('@/views/base-info/resource/scenic'),
          meta: {
            title: 'scenicManage'
          }
        },
      ]
    },
    {
      path: 'reservation',
      name: 'reservation',
      redirect: '/reservation/hotel',
      component: () => import('@/components/emtry'),
      meta: {
        title: 'reservation'
      },
      children: [
        {
          path: 'hotel',
          name: 'reservationHotel',
          component: () => import('@/views/base-info/reservation/hotel'),
          meta: {
            title: 'reservationHotel'
          }
        },
        {
          path: 'scenic',
          name: 'reservationScenic',
          component: () => import('@/views/base-info/reservation/scenic'),
          meta: {
            title: 'reservationScenic'
          }
        },
        {
          path: 'car',
          name: 'reservationCar',
          component: () => import('@/views/base-info/reservation/car'),
          meta: {
            title: 'reservationCar'
          }
        },
        {
          path: 'restaurant',
          name: 'reservationRestaurant',
          component: () => import('@/views/base-info/reservation/restaurant'),
          meta: {
            title: 'reservationRestaurant'
          }
        },
        {
          path: 'speedboat',
          name: 'reservationSpeedboat',
          component: () => import('@/views/base-info/reservation/speedboat'),
          meta: {
            title: 'reservationSpeedboat'
          }
        },
        {
          path: 'other',
          name: 'reservationOhter',
          component: () => import('@/views/base-info/reservation/other'),
          meta: {
            title: 'reservationOhter'
          }
        },
      ]
    }
  ]
}

export default router
